home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19980901-19981211
/
000236_news@newsmaster….columbia.edu _Wed Oct 28 16:10:23 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-12-10
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA24855
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 28 Oct 1998 16:10:23 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA10589
for kermit.misc@watsun; Wed, 28 Oct 1998 16:10:22 -0500 (EST)
Path: news.columbia.edu!panix!howland.erols.net!Supernews73!supernews.com!Supernews69!not-for-mail
From: "Michael Rose" <mike@tegris.com>
Newsgroups: comp.protocols.kermit.misc
Subject: sending variables on the command line
Date: Wed, 28 Oct 1998 13:06:51 -0800
Organization: http://www.supernews.com, The World's Usenet: Discussions Start Here
Lines: 24
Message-ID: <71810c$31v$1@supernews.com>
NNTP-Posting-Host: 207.153.137.197
X-Trace: 909608780 C4TGOY8WA89C5CF99C usenet53.supernews.com
X-Complaints-To: newsabuse@supernews.com
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Xref: news.columbia.edu comp.protocols.kermit.misc:9436
I have a script that I would like to send variables from the command prompt.
kermit script-name variable1 variable2 variable3 variable4
$kermit maillogs 10.2.2.14 joebloe joepasswd maillog
This script logs into our Linux box and then excutes a script called maillog
which mails us a log of a number of services.
I already have the script written and works great when I execute
$kermit maillogs
It ask us for the ip address, username, password and the script to execute
but what I want it to do is accept these variables from the command prompt
so I can then incorporate this into our database.
Any help would be greatly appreciated.
Regards,
Michael Rose